/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-9-18 下午2:49 Created by dwzhang
 */
package com.jade.bss.weixin;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 微信应用参数。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-9-18 下午2:49
 */
@Entity
@Table (name = "BSS_WEIXN_APP")
public class WeixinApp
        implements Serializable
{
    public static final int MODE_PLATFORM = 0;
    public static final int MODE_SELF = 1;

    @Id
    @Column (name = "customer_id")
    private long customerId = 0;

    private int mode;

    @Column (name = "app_id")
    private String appId;
    @Column (name = "app_secret")
    private String appSecret;

    private String token;

    @Column (name = "des_key")
    private String desKey;

    @Column (name = "api_kay")
    private String apiKey;
    @Column (name = "cer_file_path")
    private String cerFilePath;
    @Column (name = "cer_file_passwd")
    private String cerFilePassword;
    @Column (name = "merchant_id")
    private String merchantId;
    @Column (name = "server_ip")
    private String serverIp;

//    @Column (name = "owner_type")
//    private String wxAppId;

    public String getAppId()
    {
        return appId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getAppSecret()
    {
        return appSecret;
    }

    public void setAppSecret(String appSecret)
    {
        this.appSecret = appSecret;
    }

    public String getApiKey()
    {
        return apiKey;
    }

    public void setApiKey(String apiKey)
    {
        this.apiKey = apiKey;
    }

    public String getToken()
    {
        return token;
    }

    public void setToken(String token)
    {
        this.token = token;
    }

    public String getDesKey()
    {
        return desKey;
    }

    public void setDesKey(String desKey)
    {
        this.desKey = desKey;
    }

    public String getCerFilePath()
    {
        return cerFilePath;
    }

    public void setCerFilePath(String cerFilePath)
    {
        this.cerFilePath = cerFilePath;
    }

    public String getCerFilePassword()
    {
        return cerFilePassword;
    }

    public void setCerFilePassword(String cerFilePassword)
    {
        this.cerFilePassword = cerFilePassword;
    }

    public String getMerchantId()
    {
        return merchantId;
    }

    public void setMerchantId(String merchantId)
    {
        this.merchantId = merchantId;
    }

    public String getServerIp()
    {
        return serverIp;
    }

    public void setServerIp(String serverIp)
    {
        this.serverIp = serverIp;
    }

    public long getCustomerId()
    {
        return customerId;
    }

    public void setCustomerId(long customerId)
    {
        this.customerId = customerId;
    }

    public int getMode()
    {
        return mode;
    }

    public void setMode(int mode)
    {
        this.mode = mode;
    }

    //    public String getWxAppId()
//    {
//        return wxAppId;
//    }
//
//    public void setWxAppId(String wxAppId)
//    {
//        this.wxAppId = wxAppId;
//    }
}
